package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.PurchaseOrderItem;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface PurchaseOrderItemMapper {
    void deleteByPrimaryKey(Long id);

    void insert(PurchaseOrderItem record);

    PurchaseOrderItem selectByPrimaryKey(Long id);

    List<PurchaseOrderItem> selectAll();

    void updateByPrimaryKey(PurchaseOrderItem record);

    /**
     * 查询总条数
     * @param qo
     * @return
     */
    int queryForCount(QueryObject qo);

    /**
     * 分页查询
     * @param qo
     * @return
     */
    List<PurchaseOrderItem> queryForList(QueryObject qo);

    /**
     * 根据订单id删除订单明细
     * @param id
     */
    void deleteByOrderId(Long id);

}